package com.neuedu.his.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neuedu.his.mapper.DiseaseMapper;
import com.neuedu.his.po.Disease;
import com.neuedu.his.service.DiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DiseaseServiceImpl extends ServiceImpl<DiseaseMapper, Disease> implements DiseaseService {

    @Autowired
    private DiseaseMapper diseaseMapper;

    @Override
    public List<Disease> searchDiseases(String keyword) {
        return diseaseMapper.searchDiseases(keyword);
    }
}